package com.jiyun.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.ToString;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/* *
 * @Author nxj
 * @Date 2023 08 2023/8/9 15 59
 * */
@Data
@ToString
public class Race {
    @TableId(value = "id",type = IdType.AUTO)
    private Integer id;
    private String rname;
    private String type;
    private String answer;
    private Integer count;
    private String lid;
    private Integer number;
    private String advance;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "Asia/Shanghai")
    private Date starttime;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "Asia/Shanghai")
    private Date endtime;
    private Integer sort;
    private Integer status;
    private String photo;
    private String remark;
    private String competing;
    private String tid;


}
